package pancake.function;
 
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class MyTabs extends TabActivity {
	  @Override
	  public void onCreate(Bundle savedInstanceState) 
	  {
		  super.onCreate(savedInstanceState);
	      //setContentView(R.layout.listfan);
	      final TabHost tabHost = getTabHost();
	      tabHost.addTab(tabHost.newTabSpec("tagList0")
	    		  .setIndicator("发推")
	    		  .setContent(new Intent(this,MyPostFan.class)));
	      tabHost.addTab(tabHost.newTabSpec("tagList1")
	    		  .setIndicator("首页")
	    		  .setContent(new Intent(this,MyListFan.class)));
	      tabHost.addTab(tabHost.newTabSpec("tabList2")
	    		  .setIndicator("@我")
	    		  .setContent(new Intent(this,Pancake.class)));
	      tabHost.addTab(tabHost.newTabSpec("tabList3")
	    		  .setIndicator("私信")
	    		  .setContent(new Intent(this,Pancake.class)));
	      tabHost.addTab(tabHost.newTabSpec("tabList4")
	    		  .setIndicator("我关注")
	    		  .setContent(new Intent(this,Pancake.class)));
	      tabHost.addTab(tabHost.newTabSpec("tabList5")
	    		  .setIndicator("关注我")
	    		  .setContent(new Intent(this,Pancake.class)));
	      for(int i=0;i<=5;i++)
	      {
	    	  tabHost.getTabWidget().getChildAt(i).getLayoutParams().height=35;
	      }
	    
 
	  }
	  
}
